<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <title>信息详情</title>

    <meta name="HandheldFriendly" content="True" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <link rel="shortcut icon" href="/favicon.ico">

    <link href="__PUBLIC__/css/Train/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/Train/detail.css" rel="stylesheet">

    <style>
        body{
            padding-top: 50px;
        }
    </style>
    <script type="text/javascript">window.onerror=function(){return true;}</script></head>
<body class="post-template tag-about-ghost tag-zhu-shou-han-shu tag-jquery">


<nav class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="__APP__/Home/Train">教育培训机构资源网</a>
        </div>        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
            <li class="active"><a href="__APP__">首页</a></li>
            <li><a href="#">About us</a></li>
            <li><a href="#">Content</a></li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">培训内容<span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
                    <?php foreach($training_type as $v){?>
                        <li><a href="__APP__/home/Train/index?type_id=<?php echo $v['type_id'] ;?>"><?php echo $v['type_name'];?></a></li>
                    <?php }?>
                </ul>
            </li>
        </ul>

            <?php if(($_SESSION['LoginName'])&&($_SESSION['is_login'])){?>
                <div class="welcome">
                    欢迎您：<?php echo $_SESSION['LoginName'];?>&nbsp;&nbsp;&nbsp;<a href="__APP__/home/index/loginout">退出</a>
                </div>
            <?php }else{?>
                <div class="rightBtn">
                    <button type="button" class="btn btn-default btn-sm" data-toggle="modal" data-target="#Loginform">
                        登录
                    </button>
                    <button type="button" class="btn btn-default btn-sm" data-toggle="modal" data-target="#registerform">
                        注册
                    </button>

                </div>
            <?php }?>




    </div>
    </div>

</nav>

<!-- start site's main content area -->
<section class="content-wrap">
    <div class="container">
        <div class="row">

            <main class="col-md-8 main-content">


                <article id="91" class="post tag-about-ghost tag-zhu-shou-han-shu tag-jquery">
                    <?php foreach($message as $value){?>
                    <header class="head">
                        <h3 class="title"><b><?php echo $value['message_title'];?></b></h3>
                        <section class="meta">
                            <span class="glyphicon glyphicon-time" aria-hidden="true"><time class="time" datetime="2015-12-7"><?php
                                        echo date('Y-m-d H:i:s',$value['date']);

                                    }?></time></span>
                            <div class="pull-right share">
                                <div class="bdsharebuttonbox share-icons">
                                    <a href="#" class="bds_more" data-cmd="more"></a>
                                    <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
                                    <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
                                    <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
                                    <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
                                    <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
                                </div>
                            </div>
                        </section>

                    <hr class="border-color1">
                    <section class="post-content">
                        <dl class="dl-horizontal">
                            <dt>服务区域</dt>
                            <dd><?php echo '南开、和平、河北、河东';?></dd>
                        </dl>
                        <dl class="dl-horizontal">
                            <dt>类别</dt>
                            <dd><?php
                                    echo $type_name['type_name'];
                                ?></dd>
                        </dl>
                        <dl class="dl-horizontal">
                            <dt>联系人</dt>
                            <dd ><?php foreach($train_info as $value){
                                    echo $value['training_person'];?>
                                 </dd>
                        </dl>
                        <dl class="dl-horizontal tel">
                            <dt>咨询商家</dt>
                            <dd class="text-danger h3"><b><?php echo $value['training_tel'];?></b></dd>
                        </dl><?php }?>
                        <dl class="dl-horizontal">
                            <dt></dt>
                            <dd><button class="btn btn-danger btn-lg">免费预约</button></dd>
                        </dl>



                        <ul class="nav nav-tabs nav-justified">
                            <li role="presentation" class="active"><a data-toggle="tab" href="#describe">详情描述</a></li>
                            <li role="presentation"><a href="#assess" data-toggle="tab">累计评价</a></li>
                            <li role="presentation"><a href="#order" data-toggle="tab">累计预约</a></li>
                        </ul>

                        <div class="tab-content">
                            <div class="tab-pane fade in active" id="describe">
                                <table class="table">
                                    <?php foreach($train_info as $value){?>
                                    <tr>
                                        <td>详细地址</td>
                                        <td><?php echo $value['training_addr'];?></td>
                                    </tr>
                                    <tr>
                                        <td>联系人</td>
                                        <td><?php echo $value['training_person']?></td>
                                    </tr>
                                    <tr>
                                        <td>电话</td>
                                        <td><?php echo $value['training_tel'];?></td>
                                    </tr>

                                </table>
                                <?php }?>
                                    <?php foreach($message as $value){
                                        echo $value['message_content'];
                                    }?>
                               </div>
                            <div class="tab-pane fade" id="assess">
                                <p></p>
                                <p></p>
                                <p></p>
                                <p></p>
                                <p></p>
                                <p></p>
                            </div>
                            <div class="tab-pane fade" id="order">order</div>



                        </div>

                    </section>



                </article>



            </main>

            <aside class="col-md-4 sidebar border-color1 padtop76">
                <!-- start widget -->
                <!-- end widget -->

                <!-- start tag cloud widget -->
                <div class="widget bg-color0">
                    <hr class="border-color1">
                    <table class="table tab width100per border-color2">
                        <?php foreach($train_info as $value){?>
                        <tr>
                            <td style="border-color: #FEE6D3;" colspan="2"><h4><?php echo$value['training_name'];?></h4> </td>
                        </tr>
                        <tr>
                            <td style="border-color: #FEE6D3;">累计评价：</td>
                            <td style="border-color: #FEE6D3;">
                                <label class="starcolor">
                                    <span class="glyphicon glyphicon-star"></span><span class="glyphicon glyphicon-star"></span><span class="glyphicon glyphicon-star"></span>
                                </label>
                                <label class="darkgray">
                                    <span class="glyphicon glyphicon-star"></span><span class="glyphicon glyphicon-star"></span>
                                </label>
                                <label class="starcolor"> 3.0分</label>
                            </td>
                        </tr>
                        <tr>
                            <td style="border-color: #FFF7EE;">注册时间：</td>
                            <td style="border-color: #FFF7EE;">2011.01.05</td>
                        </tr>
                        <tr>
                            <td style="border-color: #FFF7EE;">地址：</td>
                            <td style="border-color: #FFF7EE;"><?php echo $value['training_addr'];?></td>
                        </tr>
                        <tr>
                            <td style="border-color: #FFF7EE;">认证：</td>
                            <td style="border-color: #FFF7EE; color: #699ECA;">V V V V</td>
                        </tr>
                        <?php }?>
                    </table>
                </div>
                <!-- end tag cloud widget -->

                <!-- start widget -->

             </aside>

        </div>
    </div>
</section>

<a href="#" id="back-to-top"><i class="fa fa-angle-up"></i></a>
<!-- 如果要使用Bootstrap的js插件，必须先调入jQuery -->
<script src="__PUBLIC__/js/jquery-1.11.1.js"></script>
<!-- 包括所有bootstrap的js插件或者可以根据需要使用的js插件调用　-->
<script src="__PUBLIC__/js/bootstrap.min.js"></script>


<script>
    $(function(){
        $('.post-content img').each(function(item){
            var src = $(this).attr('src');

            $(this).wrap('<a href="' + src + '" class="mfp-zoom" style="display:block;"></a>');
        });


    });
</script>

<script>
    window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
</script>


<div style="width:0px;height:0px;position:absolute;top:-999px;left:-999px;">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="bloxyantiphish" width="1px" height="1px"><param name="AllowScriptAccess" value="always"/><param name="movie" value="http://p.bloxy.cn/antiphish.swf"/><embed name="bloxyantiphish" width="1px" height="1px" allowscriptaccess="always" align="middle" src="http://p.bloxy.cn/antiphish.swf" type="application/x-shockwave-flash"/></object></div></body>
</html>
